
#include <apvp.pb.h>
#include "PlatformProperty.h"

TRANSMIT_WRITE_PROPERTY(TiAndDateGNSS,proto::ipcp::TiAndDateGNSS) {
    builder
        .area(VehicleArea::GLOBAL)
        .immutableStatus(PropertyStatus::Active)
        .onSetProperty([](const proto::ipcp::TiAndDateGNSS& value) {

                ecarx::transfer::TiAndDateGNSS structObj;
                structObj.tiAndDateGNSSDataValid=(uint8_t)value.tianddategnssdatavalid();
                structObj.tiAndDateGNSSDay=(uint8_t)value.tianddategnssday();
                structObj.tiAndDateGNSSHr1=(uint8_t)value.tianddategnsshr1();
                structObj.tiAndDateGNSSMins1=(uint8_t)value.tianddategnssmins1();
                structObj.tiAndDateGNSSMth1=(uint8_t)value.tianddategnssmth1();
                structObj.tiAndDateGNSSSec1=(uint8_t)value.tianddategnsssec1();
                structObj.tiAndDateGNSSYr1=(uint8_t)value.tianddategnssyr1();       
                SIGNAL.setTiAndDateGNSS(structObj);

        });
}
